package cn.source.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.source.system.mapper.SchoolMajorYearAdmissionMapper;
import cn.source.system.domain.SchoolMajorYearAdmission;
import cn.source.system.service.ISchoolMajorYearAdmissionService;

/**
 * 年度学校各专业录取情况Service业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2024-02-20
 */
@Service
public class SchoolMajorYearAdmissionServiceImpl implements ISchoolMajorYearAdmissionService 
{
    @Autowired
    private SchoolMajorYearAdmissionMapper schoolMajorYearAdmissionMapper;

    /**
     * 查询年度学校各专业录取情况
     * 
     * @param id 年度学校各专业录取情况主键
     * @return 年度学校各专业录取情况
     */
    @Override
    public SchoolMajorYearAdmission selectSchoolMajorYearAdmissionById(Long id)
    {
        return schoolMajorYearAdmissionMapper.selectSchoolMajorYearAdmissionById(id);
    }

    /**
     * 查询年度学校各专业录取情况列表
     * 
     * @param schoolMajorYearAdmission 年度学校各专业录取情况
     * @return 年度学校各专业录取情况
     */
    @Override
    public List<SchoolMajorYearAdmission> selectSchoolMajorYearAdmissionList(SchoolMajorYearAdmission schoolMajorYearAdmission)
    {
        return schoolMajorYearAdmissionMapper.selectSchoolMajorYearAdmissionList(schoolMajorYearAdmission);
    }
    
    @Override
    public List<SchoolMajorYearAdmission> selectSchoolMajorYearAdmissionCheckList(SchoolMajorYearAdmission schoolMajorYearAdmission)
    {
        return schoolMajorYearAdmissionMapper.selectSchoolMajorYearAdmissionCheckList(schoolMajorYearAdmission);
    }
    
    @Override
    public List<SchoolMajorYearAdmission> selectSchoolZyzYearAdmissionList(SchoolMajorYearAdmission schoolMajorYearAdmission)
    {
        return schoolMajorYearAdmissionMapper.selectSchoolZyzYearAdmissionList(schoolMajorYearAdmission);
    }
    
    @Override
    public List<SchoolMajorYearAdmission> selectSchoolMajorZyYearAdmissionList(SchoolMajorYearAdmission schoolMajorYearAdmission)
    {
        return schoolMajorYearAdmissionMapper.selectSchoolMajorZyYearAdmissionList(schoolMajorYearAdmission);
    }
    
    @Override
    public List<SchoolMajorYearAdmission> selectSchoolMajorZyYearAdmissionDetailList(SchoolMajorYearAdmission schoolMajorYearAdmission)
    {
        return schoolMajorYearAdmissionMapper.selectSchoolMajorZyYearAdmissionDetailList(schoolMajorYearAdmission);
    }
    
    @Override
    public List<SchoolMajorYearAdmission> selectSchoolMajorZyYearAdmissionListByZyzStr(SchoolMajorYearAdmission schoolMajorYearAdmission)
    {
        return schoolMajorYearAdmissionMapper.selectSchoolMajorZyYearAdmissionListByZyzStr(schoolMajorYearAdmission);
    }
    
    @Override
    public List<SchoolMajorYearAdmission> selectSchoolMajorZyYearAdmissionDetailListByZyzStr(SchoolMajorYearAdmission schoolMajorYearAdmission)
    {
        return schoolMajorYearAdmissionMapper.selectSchoolMajorZyYearAdmissionDetailListByZyzStr(schoolMajorYearAdmission);
    }

    public List<SchoolMajorYearAdmission> selectSchoolMajorYearAdmission2023List(SchoolMajorYearAdmission schoolMajorYearAdmission){
        return schoolMajorYearAdmissionMapper.selectSchoolMajorYearAdmission2023List(schoolMajorYearAdmission);
    }

    public List<SchoolMajorYearAdmission> selectSchoolMajorYearAdmission2022List(SchoolMajorYearAdmission schoolMajorYearAdmission){
        return schoolMajorYearAdmissionMapper.selectSchoolMajorYearAdmission2022List(schoolMajorYearAdmission);
    }

    /**
     * 新增年度学校各专业录取情况
     * 
     * @param schoolMajorYearAdmission 年度学校各专业录取情况
     * @return 结果
     */
    @Override
    public int insertSchoolMajorYearAdmission(SchoolMajorYearAdmission schoolMajorYearAdmission)
    {
        return schoolMajorYearAdmissionMapper.insertSchoolMajorYearAdmission(schoolMajorYearAdmission);
    }

    /**
     * 修改年度学校各专业录取情况
     * 
     * @param schoolMajorYearAdmission 年度学校各专业录取情况
     * @return 结果
     */
    @Override
    public int updateSchoolMajorYearAdmission(SchoolMajorYearAdmission schoolMajorYearAdmission)
    {
        return schoolMajorYearAdmissionMapper.updateSchoolMajorYearAdmission(schoolMajorYearAdmission);
    }

    /**
     * 批量删除年度学校各专业录取情况
     * 
     * @param ids 需要删除的年度学校各专业录取情况主键
     * @return 结果
     */
    @Override
    public int deleteSchoolMajorYearAdmissionByIds(Long[] ids)
    {
        return schoolMajorYearAdmissionMapper.deleteSchoolMajorYearAdmissionByIds(ids);
    }

    /**
     * 删除年度学校各专业录取情况信息
     * 
     * @param id 年度学校各专业录取情况主键
     * @return 结果
     */
    @Override
    public int deleteSchoolMajorYearAdmissionById(Long id)
    {
        return schoolMajorYearAdmissionMapper.deleteSchoolMajorYearAdmissionById(id);
    }
}
